package com.example.controller;

import com.example.pojo.Help;
import com.example.service.HelpService;
import com.example.service.impl.HelpServiceImpl;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import javax.annotation.Resource;
import java.util.List;

@Controller
public class HelpController {
    @Resource(name = "helpService")
    public HelpService helpService;
    @RequestMapping("/helplist")
    @ResponseBody
    public List<Help> getHelpList() {
        return helpService.getHelpList();
    }
}
